<%@include file="/html/init.jsp" %>

<%
	String mainTabs = ParamUtil.get(request, "mainTabs", StringPool.BLANK);
%>

<portlet:resourceURL var="loadQuanHuyenURL" id="loadQuanHuyen" />
<portlet:resourceURL var="loadPhuongXaURL" id="loadPhuongXa" />
<portlet:resourceURL var="loadNganhNgheCoDKURL" id="loadNganhNgheCoDK" />

<liferay-ui:success key="yeu-cau-cua-ban-duoc-thuc-hien-thanh-cong" message="yeu-cau-cua-ban-duoc-thuc-hien-thanh-cong" />
<liferay-ui:success key="file-in-duoc-mo-vui-long-kiem-tra-file-in" message="file-in-duoc-mo-vui-long-kiem-tra-file-in" />

<liferay-ui:error key="gap-loi-khi-in" message="gap-loi-khi-in" />
<liferay-ui:error key="gap-loi-xu-ly-vui-long-xem-server-log" message="gap-loi-xu-ly-vui-long-xem-server-log" />
<liferay-ui:error key="gap-loi-xu-ly-vui-long-dien-dung-format-ngay-dd-mm-yyyy" message="gap-loi-xu-ly-vui-long-dien-dung-format-ngay-dd-mm-yyyy" />

<liferay-ui:error key="ko-the-tao-bien-nhan-moi-vui-long-dien-dung-format-ngay-dd-mm-yyyy" message="ko-the-tao-bien-nhan-moi-vui-long-dien-dung-format-ngay-dd-mm-yyyy" />
<liferay-ui:error key="ko-the-tao-bien-nhan-moi-vui-long-xem-server-log" message="ko-the-tao-bien-nhan-moi-vui-long-xem-server-log" />

<liferay-ui:error key="vui-long-chon-file-de-upload" message="vui-long-chon-file-de-upload" />

<!-- Check if user is logged in or not -->
<c:choose>
	<c:when test="<%=themeDisplay.isSignedIn() %>">
	
		<div class="portlet-DMDC portlet-Container">
			<div class="wapper-Left">
				<liferay-util:include page="/html/menu_ben_trai.jsp" servletContext="<%=this.getServletContext() %>"/>
			</div>
			
			<!-- noi dung ben phai -->
			<div class="wapper-Right">
				<c:if test='<%=mainTabs.equals(KSDLConstants.QUAN_LY_DAN_CU_90) || mainTabs.equals(StringPool.BLANK)%>'>
					<%-- <h2 class="tle-Content">
						<liferay-ui:message key="<%=KSDLConstants.QUAN_LY_DAN_CU_90 %>" />
					</h2> --%>
					
					<!-- <div class="main-Content"> -->
						<liferay-util:include page="/html/quan_ly_dan_cu_90.jsp" servletContext="<%=this.getServletContext() %>"/>
					<!-- </div> -->
				</c:if>
				<c:if test='<%=mainTabs.equals(KSDLConstants.IMPORT_DAN_CU_90)%>'>
					<%-- <h2 class="tle-Content">
						<liferay-ui:message key="<%=KSDLConstants.QUAN_LY_DAN_CU_90 %>" />
					</h2> --%>
					
					<!-- <div class="main-Content"> -->
						<liferay-util:include page="/html/import_dan_cu_90.jsp" servletContext="<%=this.getServletContext() %>"/>
					<!-- </div> -->
				</c:if>
				<%-- <c:if test='<%=mainTabs.equals(QLNNCDKConstants.XU_LY_HO_SO) || mainTabs.equals(StringPool.BLANK) %>'>
					<liferay-util:include page="/views/xu_ly_ho_so.jsp" servletContext="<%=this.getServletContext() %>"/>
				</c:if>
				<c:if test='<%=mainTabs.equals(QLNNCDKConstants.KIEM_TRA_HO_SO) || mainTabs.equals(QLNNCDKConstants.XEM_CHI_TIET_HO_SO)%>'>
					<liferay-util:include page="/views/kiem_tra_ho_so.jsp" servletContext="<%=this.getServletContext() %>"/>
				</c:if>
				<c:if test='<%=mainTabs.equals(QLNNCDKConstants.TIM_HO_SO) %>'>
					<h2 class="tle-Content">
						<liferay-ui:message key="<%=QLNNCDKConstants.TIM_HO_SO %>"/>
					</h2>
					
					<div class="main-Content">
						<liferay-util:include page="/views/tim_ho_so.jsp" servletContext="<%=this.getServletContext() %>"/>
					</div>
				</c:if>
				<c:if test='<%=mainTabs.equals(QLNNCDKConstants.LICH_SU_HO_SO) %>'>
					<h2 class="tle-Content">
						<liferay-ui:message key="<%=QLNNCDKConstants.LICH_SU_HO_SO %>"/>
					</h2>
					
					<div class="main-Content">
						<liferay-util:include page="/views/kiem_tra_ho_so/lich_su_ho_so.jsp" servletContext="<%=this.getServletContext() %>"/>
					</div>
				</c:if>
				<c:if test='<%=mainTabs.equals(QLNNCDKConstants.QUAN_LY_CO_SO_KINH_DOANH) %>'>
					<h2 class="tle-Content">
						<liferay-ui:message key="<%=QLNNCDKConstants.QUAN_LY_CO_SO_KINH_DOANH %>"/>
					</h2>
					
					<!-- <div class="main-Content"> -->
						<liferay-util:include page="/views/quan_ly_co_so_kinh_doanh.jsp" servletContext="<%=this.getServletContext() %>"/>
					<!-- </div> -->
				</c:if>
				<c:if test='<%=mainTabs.equals(QLNNCDKConstants.QUAN_LY_DOT_KIEM_TRA) %>'>
						<h2 class="tle-Content">
						<liferay-ui:message key="<%=QLNNCDKConstants.QUAN_LY_DOT_KIEM_TRA %>"/>
					</h2>
					
						<liferay-util:include page="/views/dot_kiem_tra.jsp" servletContext="<%=this.getServletContext() %>"/>
				</c:if>
				
				<c:if test='<%=mainTabs.equals(QLNNCDKConstants.BAO_CAO_THONG_KE) %>'>
					<h2 class="tle-Content">
						<liferay-ui:message key="<%=QLNNCDKConstants.BAO_CAO_THONG_KE %>"/>
					</h2>
					
					<!-- <div class="main-Content"> -->
						<liferay-util:include page="/views/bao_cao_thong_ke.jsp" servletContext="<%=this.getServletContext() %>"/>
					<!-- </div> -->
				</c:if> --%>
			</div>
		</div>
		
		<script type="text/javascript">
			var ksdl_namespace = '<portlet:namespace/>';
			var loadQuanHuyenURL = '<%=loadQuanHuyenURL.toString()%>';
			var loadPhuongXaURL = '<%=loadPhuongXaURL.toString()%>';
			var loadNganhNgheCoDKURL = '<%=loadNganhNgheCoDKURL.toString()%>';
			var dateErrorMessage = '<liferay-ui:message key="vui-long-dien-dung-format-ngay-dd-mm-yyyy"/>';
		</script>
		<script type="text/javascript" src="/ksdl-portlet/js/main.js"></script>
	</c:when>
	
	<c:otherwise>
		<div class="portlet-msg-error"><liferay-ui:message key="vui-long-dang-nhap-de-tiep-tuc"/></div>
	</c:otherwise>
</c:choose>
